/*
 * @Author: LuoRunfeng fleayun@gmail.com 
 * @Date: 2021-07-08 10:47:08 
 * @Last Modified by: LuoRunfeng fleayun@gmail.com
 * @Last Modified time: 2021-07-15 09:13:22
 */

import router from '@/router'
import store from '@/store'


router.beforeEach(async(to, from, next) => {
    await store.dispatch('routes/setRoutes')
        // accessRoutes.forEach((item) => {
        // 	router.addRoute(item)
        // })
    next()
})
router.afterEach((to) => {
    document.title = to.meta.title + '-绩效管理平台'
})